package com.oha.laporrayelchurro.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.google.appengine.api.memcache.MemcacheService;
import com.google.appengine.api.memcache.MemcacheServiceFactory;

public class ResetCacheServlet extends BaseServlet{
	
	public MemcacheService syncCache = MemcacheServiceFactory.getMemcacheService();
	
	/**
	 * serial
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * doGet
	 * @throws ServletException 
	 */
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		syncCache.clearAll();
		goToView(req, resp, "/pages/home.jsp");
	}

}
